#:kivy 1.0

FloatLayout:
    GameGrid
    
<GameGrid>:
    GridLayout:
        cols: 4
        Label:
            text: 'GAME 2048'
        Label:
            id: score
            text: 'SCORE:'+str(root.score)
        Label:
            id:highscore
            text: 'HIGHSCORE:'+str(root.score)
        Label:
            text: ''
        Button:
            id: Btn00
            text: str(root.table[0][0])
            font_size: 30
            background_color:[1,1,1,1]
        Button:
            id: Btn01
            text: str(root.table[0][1])
            font_size: 30
            background_color:[1,1,1,1]
        Button:
            id: Btn02
            text: str(root.table[0][2])
            font_size: 30
            background_color:[1,1,1,1]
        Button:
            id: Btn03
            text: str(root.table[0][3])
            font_size: 30
            background_color:[1,1,1,1]
        Button:
            id: Btn10
            text: str(root.table[1][0])
            font_size: 30
            background_color:[1,1,1,1]
        Button:
            id: Btn11
            text: str(root.table[1][1])
            font_size: 30
            background_color:[1,1,1,1]
        Button:
            id: Btn12
            text: str(root.table[1][2])
            font_size: 30
            background_color:[1,1,1,1]
        Button:
            id: Btn13
            text: str(root.table[1][3])
            font_size: 30
            background_color:[1,1,1,1]
        Button:
            id: Btn20
            text: str(root.table[2][0])
            font_size: 30
            background_color:[1,1,1,1]
        Button:
            id: Btn21
            text: str(root.table[2][1])
            font_size: 30
            background_color:[1,1,1,1]
        Button:
            id: Btn22
            text: str(root.table[2][2])
            font_size: 30
            background_color:[1,1,1,1]
        Button:
            id: Btn23
            text: str(root.table[2][3])
            font_size: 30
            background_color:[1,1,1,1]
        Button:
            id: Btn30
            text: str(root.table[3][0])
            font_size: 30
            background_color:[1,1,1,1]
        Button:
            id: Btn31
            text: str(root.table[3][1])
            font_size: 30
            background_color:[1,1,1,1]
        Button:
            id: Btn32
            text: str(root.table[3][2])
            font_size: 30
            background_color:[1,1,1,1]
        Button:
            id: Btn33
            text: str(root.table[3][3])
            font_size: 30
            background_color:[1,1,1,1]

<GameOver>:
    background_color:(1,1,1,0)
    Label:
        background_color: (1,1,1,1)
        text: 'GAME OVER'
        font_size: 100
        